package com.ruoyi.web.controller.homeQuery;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.system.domain.HomeMiddleData;
import com.ruoyi.system.service.MiddleShowService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;


@RestController
@RequestMapping(value = "/homeQuery")
public class MiddleShowController extends BaseController {

    @Resource
    private MiddleShowService middleShowService;

    /**
     * @Deprecated 获取首页中间部分数据
     * @return 返回查询到的数据
     */
    @GetMapping("/queryMiddleData")
    public Object queryMiddleData() {
        LoginUser loginUser = getLoginUser();
        return middleShowService.queryMiddleData(loginUser);
    }

    /**
     * @Deprecated 查询底部数据
     * @return 返回查询到的数据
     */
    @GetMapping("/queryBottomData")
    public Object queryBottomData(){
        return middleShowService.queryBottomData();
    }



}
